home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
tools.lha
/
tools
/
debug.h
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
327b
|
24 lines
ifndef DEBUG_H
define DEBUG_H
ifdef __cplusplus
xtern "C" {
endif
xtern char *getenv(const char*);
xtern int atoi(const char*);
ifdef __cplusplus
endif
lass debugC {
int i;
ublic:
debugC() {
char *x = getenv("DEBUG");
i = x ? atoi(x) : 0;
}
operator int() { return i; }
;
tatic debugC debug;
endif /* DEBUG_H */